
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Title</title>
</head>
<body>
<input type="text" id="name" />
<input type="button" id="btn"/>
</body>
<script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
<script>
    $(function(){
        $("#btn").click(function(){
            $.post("/getPerson",
                    {
                        name:$("#name").val()
                    },
                    function(data){
                        alert(data);
                    });
        });
    });

</script>
</html>
